package com.gmall.common.result;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageInfo<T> {

//    private int pageNo;//11
//
//    private int pageSize;//10

    public Long total;//102

    public List<T> records;

    /**
     * private int pages; //11
     * private int prePage;//2
     * private int nextPage;//4
     * private boolean isFirstPage;//false
     * private boolean isLastPage;//false
     * private boolean hasPreviousPage;//true
     * private boolean hasNextPage;//true
     */
}
